/* eslint-disable no-unused-vars */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Rank from '../views/Rank.vue'
import playListDetail from '../components/playListDetail/playListDetail.vue'
import RankListDetail from '../components/rank/RankListDetail.vue'
import Player from '../components/player/Player.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
     meta:{
       showTab:true
     }
  },
  {
    path: '/Rank',
    name: 'Rank',
    component: () => import(/*webpackChunkName:"about"*/'../views/Rank.vue'),
    meta:{
      showTab:true
    }
  },
  {
    path: '/playListDetail/:id',
    name: 'playListDetail',
    component: playListDetail,
    meta:{
      showTab:false
    }
  },
  {
    path: '/ranklistdetail/:id',
    name: 'RankListDetail',
    component: RankListDetail,
    meta:{
      showTab:false
    }
  },
  {
    path: '/player/:id',
    name: 'Player',
    component: Player,
    meta:{
      showTab:false
    }
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
